package com.basin.micro.auth.module.role.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("basin_auth_role")
@UniqueKeys(fields = {"role_code", "role_name"})
@RequireValFields(fields = {"role_code", "role_name"})
@Builder
public class RoleEntity extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String roleCode;
    private String roleName;
    private String roleDesc;
    private Integer roleStatus;
}
